package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 海域信息 对应表 BA_SEA_AREA
public class BA_SeaArea extends BABaseEntity {
    @Id

    // 一个表一个序列
    // @SequenceGenerator(name="id_seq",sequenceName="increment_seq",allocationSize=1)
    // @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="id_seq")
    @GenericGenerator(name="seaAreaGenerator", strategy="uuid")
    @GeneratedValue(generator="seaAreaGenerator")
    private String BA_SeaArea_ID;

    @Basic
    @Column(name = "DENSITY")
    private Double density;

    @Basic
    @Column(name = "WATERTEMPERATURE")
    private Double waterTemperature;

    @Basic
    @Column(name = "MUDLINETEMPERATURE")
    private Double mudLineTemperature;

    @Basic
    @Column(name = "TEMPERATUREGRADIENT")
    private Double TEMPERATUREGRADIENT;

    @Basic
    @Column(name = "CURRENTSPEED")
    private Double currentSpeed;

    @Basic
    @Column(name = "THERMALCONDUCTIVITY")
    private Double thermalConductivity;

    @Basic
    @Column(name = "SPECIFICHEAT")
    private Double specificHeat;

    @ManyToOne
    @JoinColumn(name="ba_well_id")
    private BA_Well well;

}
